from django.db import models


class Author(models.Model):
    id = models.AutoField(primary_key=True)
    username = models.CharField(max_length=100, null=False)
    age = models.IntegerField(null=False, default=0)
    address = models.CharField(max_length=100, db_column='user_addres', default='')
    telephone = models.CharField(unique=True, default='', max_length=11)
    create_time = models.DateTimeField(auto_now_add=True)
